extends Sprite2D
class_name OtherPlayerViewTexture

var viewWidth = 160
var viewHeight = 320

func init(posX, posY, targetWidth, targetHeight):
	position = Vector2(posX, posY)
	scale = Vector2(targetWidth * 1.0 / viewWidth, targetHeight * 1.0 / viewHeight) 


func setViewTexture(targetViewportTexture):
	texture = targetViewportTexture
